export const state = () => ({
  token: '',
  locales: ['en', 'cn'],
  locale: 'cn',
})

export const getters = {
  getToken: (state) => state.token,
}

export const mutations = {
  SET_TOKEN: (state, token) => {
    state.token = token
  },
}

export const actions = {
  setLang: ({ commit }, token) => {
    commit('SET_TOKEN', token)
  },
}
